import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 导入饿了么
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 抹平浏览器差异
import 'normalize.css'
import '@/router/permission.js'
// 导入全局组件
import TypeNav from '@/components/TypeNav'
import Pagination from "@/components/Pagination";
// 导入mockServe文件
import '@/mock/mockServe.js'
// 导入swiper样式
import 'swiper/css/swiper.css'
// 创建bus实例
Vue.prototype.$bus = new Vue()

Vue.use(ElementUI)

Vue.config.productionTip = false
// 全局组件组件
Vue.component(TypeNav.name, TypeNav)
Vue.component(Pagination.name, Pagination)

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
